require(['highcharts', 'zTreeCheckbox'], function () {

    $('#container').highcharts({
        title: {
            text: ''
        },
        xAxis: {
            categories: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
            title: {
                text: '月份'
            }
        },
        yAxis: {
            min: 0,
            max: 2500,
            title: {
                text: '万元'
            }
        },
        tooltip: {
            formatter: function () {
                var s = '<b>' + this.x + ' 月份</b>';
                $.each(this.points, function () {
                    s += '<br/><span style="color: ' + this.series.color + '">' + this.series.name + '</span>: <b>' +
                        this.y + ' 元</b>';
                });
                return s;
            },
            // pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> <br/>',
            shared: true
        },
        plotOptions: {
            column: {
                stacking: 'normal'
            }
        },
        series: [{
            type: 'line',
            name: '运营成本',
            data: [1800, 1400, 1500, 1400, 1500, 1800, 1400, 1500, 1400, 1500, 1400, 1500]
        }, {
            type: 'column',
            name: '燃料成本',
            data: [1300, 1100, 1200, 1100, 1200, 1300, 1100, 1200, 1100, 1200, 1100, 1200]
        }, {
            type: 'column',
            name: '人工成本',
            data: [300, 100, 200, 100, 200, 300, 100, 200, 100, 200, 100, 200]
        }]
    });

});